//
//  YCHomeVC.m
//  KuaiYi
//
//  Created by 刘胤辰 on 16/7/5.
//  Copyright © 2016年 it.com. All rights reserved.
//

#import "YCHomeVC.h"
#import "YCViewModel.h"
#import "YCLoopView.h"

@interface YCHomeVC ()

@end

@implementation YCHomeVC

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title=@"开心一笑";
    self.view.backgroundColor=[UIColor whiteColor];
    
    //上面的view
    UIView *headView=[YCView initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 70) RGBbackGroudColor:170 G:240 B:220 Alpha:1.0];
    
    //图片轮播起
    UICollectionViewFlowLayout *flow=[[UICollectionViewFlowLayout alloc]init];
    
    YCLoopView *Colview=[[YCLoopView alloc]initWithFrame:CGRectZero collectionViewLayout:flow];
    
    [self.view addSubview:headView];
    [self.view addSubview:Colview];
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
